package org.zs.miracle.common.exception;

import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户友好异常用于提示信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserFriendlyException extends BaseException {
  
  @Serial
  private static final long serialVersionUID = -6118175135478623791L;
  
  public UserFriendlyException() {
  }
  
  public UserFriendlyException(String message, int code) {
    super(message, code);
  }
  
  public UserFriendlyException(String message) {
    super(message, 500);
  }
  
  public UserFriendlyException(String message, Throwable cause, int code) {
    super(message, cause, code);
  }
  
  public UserFriendlyException(Throwable cause, int code) {
    super(cause, code);
  }
  
  public UserFriendlyException(String message, Throwable cause, boolean enableSuppression,
      boolean writableStackTrace, int code) {
    super(message, cause, enableSuppression, writableStackTrace, code);
  }
}